Platform Explorer / Nuxeo Platform 11.3

Component org.nuxeo.ecm.platform.comment.service.RelationContrib

Documentation

This component defines the relation-related config for comments.

Resolution Order

285
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.comment.service.RelationContrib">

  <documentation>
    This component defines the relation-related config for comments.
  </documentation>

  <extension target="org.nuxeo.ecm.platform.comment.service.CommentService"
    point="config">
    <config>
      <converterClass>
        org.nuxeo.ecm.platform.comment.impl.CommentConverterImpl
      </converterClass>
      <graphName>documentComments</graphName>
      <!-- XXX AT: these namespaces should have an ending slash -->
      <commentNamespace>http://www.nuxeo.org/comments/uid</commentNamespace>
      <documentNamespace>http://www.nuxeo.org/document/uid</documentNamespace>
      <predicateNamespace>
        http://www.nuxeo.org/predicates/isCommentFor
      </predicateNamespace>
    </config>
  </extension>

  <!-- relation adapters -->
  <extension target="org.nuxeo.ecm.platform.relations.services.RelationService"
    point="resourceadapters">
    <!-- XXX AT: this namespace should have an ending slash -->
    <adapter namespace="http://www.nuxeo.org/comments/uid"
      class="org.nuxeo.ecm.platform.relations.adapters.DocumentModelResourceAdapter" />
  </extension>

  <extension target="org.nuxeo.ecm.core.schema.TypeService"
    point="doctype">
    <doctype name="CommentRelation" extends="Relation">
      <facet name="HiddenInNavigation" />
    </doctype>
  </extension>

</component>